function show_hide_form(obj){
	if (obj.innerHTML == 'Anadir') {
		document.getElementById("CountryCouCodigo").value = "";
		document.getElementById("CountryCouNombre").value = "";
		Effect.BlindDown('country_add_form', { duration: 0.3 });
		obj.innerHTML = 'Cancelar';
	} else if (obj.innerHTML == 'Cancelar') {
		Effect.BlindUp('country_add_form', { duration: 0.3 });
		obj.innerHTML = 'Anadir';
	} else if (obj.innerHTML == 'Editar') {
		Effect.BlindDown('country_add_form', { duration: 0.3 });
		document.getElementById("show_hide_form").innerHTML = 'Cancelar';
	} else {
		obj.innerHTML = 'Error';
	}
}

function blind(obj) {
	if (obj.innerHTML == 'Anadir') {
		document.getElementById("DepotDepCodigo").value = "";
		document.getElementById("DepotDepNombre").value = "";
		Effect.BlindDown('depot_add_form', { duration: 0.3 });
		obj.innerHTML = 'Cancelar';
	} else if (obj.innerHTML == 'Cancelar') {
		Effect.BlindUp('depot_add_form', { duration: 0.3 });
		obj.innerHTML = 'Anadir';
	} else if (obj.innerHTML == 'Editar') {
		Effect.BlindDown('depot_add_form', { duration: 0.3 });
		document.getElementById("show_hide_form").innerHTML = 'Cancelar';
	} else {
		obj.innerHTML = 'Error';
	}
}

function ownBlindForm(lnk, cont) {
	form = document.getElementById(cont);
	if (lnk.innerHTML == 'Anadir') {
		Effect.BlindDown(form, { duration: 0.3 });
		lnk.innerHTML = 'Cancelar';
	} else if (lnk.innerHTML == 'Cancelar') {
		Effect.BlindUp(form, { duration: 0.3 });
		lnk.innerHTML = 'Anadir';
	} else if (lnk.innerHTML == 'Editar') {
		Effect.BlindDown(form, { duration: 0.3 });
		lnk.innerHTML = 'Cancelar';
	} else {
		lnk.innerHTML = 'Error';
	}
}

function enableFormFullOptions() {
	var form = document.getElementById("form_options");
	var options = form.getElementsByTagName("A");
	var i = 0;
	for (i=0;i<options.length;i++) {
	options[i].style.display = 'none';
	}
}